home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / bit / src / ulib / write2lsb.c < prev    next >
C/C++ Source or Header  |  1994-08-01  |  565b  |  22 lines

  1. /***********************************************************************
  2.  * $Id: write2lsb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $
  3.  *
  4.  *.  Copyright(c) 1993,1994 by T.C. Zhao
  5.  *   All rights reserved.
  6.  *.
  7.  *    Write 2bytes LSB first
  8.  ***********************************************************************/
  9. #if !defined(lint) && defined(F_ID)
  10. char *id_w2lsb = "$Id: write2lsb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $";
  11. #endif
  12.  
  13. #include <stdio.h>
  14. #include "ulib.h"
  15.  
  16. void
  17. put2LSBF(int code, FILE * fp)
  18. {
  19.     putc(code & 0xff, fp);
  20.     putc((code >> 8) & 0xff, fp);
  21. }
  22.